Skip to main content

Send Message To Opened Session

AutomatR.WhatsApp.Activities.SendMessageToOpenedSession

The "Send Message To Opened Session" activity in AutomatR is part of the WhatsApp activities package, facilitating the continuation of messages in an ongoing conversation within a WhatsApp session. This activity streamlines communication processes in automation workflows, allowing the sending of messages to a specific WhatsApp number.

Properties

NameDescription
Input
To WhatsApp NumberSpecifies the WhatsApp number to which the message should be sent. WhatsApp Number with country code, Example: 85264318721. Required argument.
Message TextSpecifies the text of the message to be sent in the ongoing conversation. Required argument.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Send Message To Opened Session" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultReturns the response as Form Details. Variables of type MessageResponse to store the operation result.

How to use:

  1. Drag and drop the "Send Message To Opened Session" activity onto the workflow.
  2. Configure the properties by specifying the WhatsApp number, message text, and optionally, the delay.
  3. Optionally, customize the display name.
  4. Execute the workflow to send the specified message to the ongoing WhatsApp session.

Example: Consider an example where the "Send Message To Opened Session" activity is used to send a continuation message to a WhatsApp number "85264318721":

Send Message To Opened Session:
Display Name: "Continue WhatsApp Conversation"
To WhatsApp Number: "85264318721"
Message Text: "Hello, how can I assist you further?"
Result: messageResponse

In this example, the activity sends the message "Hello, how can I assist you further?" to the WhatsApp number "85264318721" in the ongoing conversation. The response is stored in the messageResponse variable for further handling in the workflow.